package com.itbaizhan.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itbaizhan.domain.Order;
import com.itbaizhan.dto.OrderDto;
import com.itbaizhan.mapper.OrderMapper;
import com.itbaizhan.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 13487
* @description 针对表【tb_order】的数据库操作Service实现
* @createDate 2024-05-06 17:10:15
*/
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public Page<Order> findOrder(OrderDto orderDto) {
        Page<Order> page = new Page<>(orderDto.getPageNum(), orderDto.getPageSize());
        return orderMapper.selectPage(page, null);
    }
}




